<template>
    <DocSectionText v-bind="$attrs">
        <p>MeterGroup requires a <i>value</i> as the data to display where each item in the collection should be a type of <i>MeterItem</i>.</p>
    </DocSectionText>
    <div class="card">
        <MeterGroup :value="value" />
    </div>
    <DocSectionCode :code="code" />
</template>

<script setup lang="ts">
import MeterGroup from '@/volt/MeterGroup.vue';
import { ref } from 'vue';

const value = ref([{ label: 'Space used', value: 15, color: 'var(--p-primary-color)' }]);

const code = ref(`
<template>
    <div class="card">
        <MeterGroup :value="value" />
    </div>
</template>

<script setup lang="ts">
import MeterGroup from '@/volt/MeterGroup.vue';
import { ref } from 'vue';

const value = ref([{ label: 'Space used', value: 15, color: 'var(--p-primary-color)' }]);
<\/script>
`);
</script>
